package org.opens.controller;

import lombok.extern.slf4j.Slf4j;
import org.opens.util.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述
 *
 * @author: zhangyuming
 * @date: 2024/3/20 15:40
 */
@RestController
@RequestMapping(value = "/demo")
@Slf4j
public class DemoController {

    private static final int num = 12;

    @GetMapping(value = "/getName")
    @Deprecated()
    public R<String> getName(@RequestParam(value = "name") String name) {
        return R.success(name);
    }

    @GetMapping(value = "/getName2")
    @Deprecated
    public R<String> getName2(@RequestParam(value = "name") String name) {
        return R.success(name);
    }
}
